/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.fx.employee.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotNull;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * fx促销员调动历史Entity
 * @author jyangye
 * @version 2017-10-30
 */
public class FxDealerchangehistory extends DataEntity<FxDealerchangehistory> {
	
	private static final long serialVersionUID = 1L;
	private String dealerchangeid;		// dealerchangeid
	private String dealerid;		// dealerid
	private Date changedate;		// changedate
	private String beforeparentdealerrelationid;		// beforeparentdealerrelationid
	private String beforeparentdealerid;		// beforeparentdealerid
	private String beforeagenterid;		// beforeagenterid
	private String beforeareaid;		// beforeareaid
	private String afterparentdealerrelationid;		// afterparentdealerrelationid
	private String afterparentdealerid;		// afterparentdealerid
	private String afteragenterid;		// afteragenterid
	private String afterareaid;		// afterareaid
	private String parentdealerchangeid;		// parentdealerchangeid
	private Date makedate;		// makedate
	
	public FxDealerchangehistory() {
		super();
	}

	public FxDealerchangehistory(String id){
		super(id);
	}

	@Length(min=1, max=32, message="dealerchangeid长度必须介于 1 和 32 之间")
	public String getDealerchangeid() {
		return dealerchangeid;
	}

	public void setDealerchangeid(String dealerchangeid) {
		this.dealerchangeid = dealerchangeid;
	}
	
	@Length(min=1, max=11, message="dealerid长度必须介于 1 和 11 之间")
	public String getDealerid() {
		return dealerid;
	}

	public void setDealerid(String dealerid) {
		this.dealerid = dealerid;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="changedate不能为空")
	public Date getChangedate() {
		return changedate;
	}

	public void setChangedate(Date changedate) {
		this.changedate = changedate;
	}
	
	@Length(min=0, max=11, message="beforeparentdealerrelationid长度必须介于 0 和 11 之间")
	public String getBeforeparentdealerrelationid() {
		return beforeparentdealerrelationid;
	}

	public void setBeforeparentdealerrelationid(String beforeparentdealerrelationid) {
		this.beforeparentdealerrelationid = beforeparentdealerrelationid;
	}
	
	@Length(min=0, max=500, message="beforeparentdealerid长度必须介于 0 和 500 之间")
	public String getBeforeparentdealerid() {
		return beforeparentdealerid;
	}

	public void setBeforeparentdealerid(String beforeparentdealerid) {
		this.beforeparentdealerid = beforeparentdealerid;
	}
	
	@Length(min=0, max=11, message="beforeagenterid长度必须介于 0 和 11 之间")
	public String getBeforeagenterid() {
		return beforeagenterid;
	}

	public void setBeforeagenterid(String beforeagenterid) {
		this.beforeagenterid = beforeagenterid;
	}
	
	@Length(min=0, max=32, message="beforeareaid长度必须介于 0 和 32 之间")
	public String getBeforeareaid() {
		return beforeareaid;
	}

	public void setBeforeareaid(String beforeareaid) {
		this.beforeareaid = beforeareaid;
	}
	
	@Length(min=0, max=11, message="afterparentdealerrelationid长度必须介于 0 和 11 之间")
	public String getAfterparentdealerrelationid() {
		return afterparentdealerrelationid;
	}

	public void setAfterparentdealerrelationid(String afterparentdealerrelationid) {
		this.afterparentdealerrelationid = afterparentdealerrelationid;
	}
	
	@Length(min=0, max=500, message="afterparentdealerid长度必须介于 0 和 500 之间")
	public String getAfterparentdealerid() {
		return afterparentdealerid;
	}

	public void setAfterparentdealerid(String afterparentdealerid) {
		this.afterparentdealerid = afterparentdealerid;
	}
	
	@Length(min=0, max=11, message="afteragenterid长度必须介于 0 和 11 之间")
	public String getAfteragenterid() {
		return afteragenterid;
	}

	public void setAfteragenterid(String afteragenterid) {
		this.afteragenterid = afteragenterid;
	}
	
	@Length(min=0, max=32, message="afterareaid长度必须介于 0 和 32 之间")
	public String getAfterareaid() {
		return afterareaid;
	}

	public void setAfterareaid(String afterareaid) {
		this.afterareaid = afterareaid;
	}
	
	@Length(min=0, max=32, message="parentdealerchangeid长度必须介于 0 和 32 之间")
	public String getParentdealerchangeid() {
		return parentdealerchangeid;
	}

	public void setParentdealerchangeid(String parentdealerchangeid) {
		this.parentdealerchangeid = parentdealerchangeid;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getMakedate() {
		return makedate;
	}

	public void setMakedate(Date makedate) {
		this.makedate = makedate;
	}
	
}